The less-than sign is a mathematical symbol that denotes an inequality between two values. The widely adopted form of two equal-length strokes connecting in an acute angle at the left, , has been found in documents dated as far back as the 1560s. In mathematical writing, the less-than sign is typically placed between two values being compared and signifies that the first number is less than the second number. Examples of typical usage include and .
Since the development of computer programming languages, the less-than sign and the greater-than sign have been repurposed for a range of uses and operations.
In Coldfusion, operator .lt. means "less than".
In Fortran, operator .LT. means "less than"; later versions allow <.
In Bash, Perl, and Ruby, operator (where "EOF" is an arbitrary string, but commonly "EOF" denoting "end of file") is used to denote the beginning of a here document.
In C and C++, operator represents a binary left shift.
In the C++ Standard Library, operator , when applied on an output stream, acts as insertion operator and performs an output operation on the stream.
In Ruby, operator acts as append operator when used between an array and the value to be appended.
In XPath the operator returns true if the left operand precedes the right operand in document order; otherwise it returns false.
In Bash, is used as a "here string", where is expanded and supplied to the command on its standard input, similar to a heredoc.
In BASIC, Lisp-family languages, and C-family languages (including Java and C++), operator means "less than or equal to". In Sinclair BASIC it is encoded as a single-byte code point token.
In Prolog, means "less than or equal to" (as distinct from the arrow ).
In Fortran, operators and both mean "less than or equal to".
In Bourne shell and Windows PowerShell, the operator means "less than or equal to".
| U+003C |
| U+2264 |
| U+2266 |
| U+2268 |
| U+226A |
| U+226E |
| U+2270 |
| U+2272 |
| U+2274 |
| U+22D6 |
| U+22D8 |
| U+22DC |
| U+22E6 |
| U+2343 |
| U+2976 |
| U+2977 |
| U+2993 |
| U+2996 |
| U+29C0 |
| U+2A79 |
| U+2A7B |
| U+2A7D |
| U+2A7F |
| U+2A81 |
| U+2A83 |
| U+2A85 |
| U+2A87 |
| U+2A89 |
| U+2A8D |
| U+2A95 |
| U+2A97 |
| U+2A99 |
| U+2A9B |
| U+2A9D |
| U+2A9F |
| U+2AA1 |
| U+2AA3 |
| U+2AA6 |
| U+2AA8 |
| U+2AF7 |
| U+2AF9 |
| U+FE64 |
| U+FF1C |
The less-than sign may be seen for an approximation of the opening angle bracket, . True angle bracket characters, as required in linguistics notation, are expected in formal texts.
The less-than-sign is sometimes used to represent a total order, partial order or preorder. However, the symbol is often used when it would be confusing or not convenient to use . In mathematical writing using LaTeX, the TeX command is . The Unicode code point is .
|
|